package com.stylefeng.guns.modular.train.service.impl;

import com.stylefeng.guns.common.persistence.model.FulltimeTrainPoints;
import com.stylefeng.guns.common.persistence.dao.FulltimeTrainPointsMapper;
import com.stylefeng.guns.common.persistence.service.impl.PointServiceImpl;
import com.stylefeng.guns.modular.train.service.IFulltimeTrainPointsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 脱产培训积分 服务实现类
 * </p>
 *
 * @author jondai
 * @since 2018-01-02
 */
@Service
public class FulltimeTrainPointsServiceImpl extends PointServiceImpl<FulltimeTrainPointsMapper, FulltimeTrainPoints> implements IFulltimeTrainPointsService {

    @Autowired
    private FulltimeTrainPointsMapper fulltimeTrainPointsMapper;

    @Override
    public List<FulltimeTrainPoints> selectInEmpCode(List<String> empCodes, String year) {
        return fulltimeTrainPointsMapper.selectInEmpCode(empCodes,year);
    }

    @Override
    public Double sumIntegralInEmpCode(List<String> item, String year) {
        return fulltimeTrainPointsMapper.sumIntegralInEmpCode(item,year);
    }
}
